SwordValidator.implement( {
    length:function(e) {
	    var value = this.getElValue(e);
	    if(value == "")
	        return true;
	    var len = this.getLen(value);
	    if($defined(e.get("end")))
	    	return (len >= e.get("begin") && len <= e.get("end"));
	    else return len == e.get("begin");
    }
});